Better error messages for validation failure