added error messages for login and sign up pages