added error messages for failed login