Validation fn

Addition of validation-fn attribute to support field validation (via function defined on user's scope) beyond just the required attribute.