validate_fields as optional configuration