fixed the error message when the login validation fails