added error messages for login form