Validation error handling improvement