Fixed bug that caused main page to navigate away when user tried to log in by pressing Enter instead of clicking the login button