fixed proper error message for login