Although the title may seem odd, I'll explain what I'm attempting to accomplish. I have a login form with two input fields, a checkbox, and a submit button. You can view a screenshot of it here: https://i.sstatic.net/nE1FY.png
The terms of use appear in a popup where users can access them. The issue is that when a user checks the checkbox and hits enter, the popup reappears. My goal is for the user to go to their homepage instead when they check the checkbox and press enter. Is there a way to prevent the popup from opening on enter?