Is there a way to easily create/code a custom field validation in the source code?