Added a friendlier error message for validation