fixing the error message for login failure