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

This reverts commit d1bac46844e2e06eedeed9ee6275f2267c4171c0.