Fixing ui bug where Enter key still logs in after login