Updated field validations to allow functions to be passed directly.