added error message for login