slightly improved error response format for validation errors