enter button works and login page clears after an error
enter button works on both login and register page