Added error messages for failed login or sign-up.