spec for custom field validation