Added support for function validation

Added a new validation that allows to call function in order to
validate. data-fnvalidation=‘function_name’.