Error handling for the login dialog