added error messages for login