Added error message for invalid passwords