added detection for when enter is pressed on the login page`