adding pre validate support
simplifying custom field validation