better error handling of login and signups
don't close the login dialog until the user is retrieved