error handler for login screen