Added support for function validation

Hello @1000hz,

I closed a previous pull request because I added some lines by mistake. I create a new pull request without it. 
Added a new validation that allows to call function in order to validate. data-fnvalidation=‘function_name’.

I hope it can be merged! Gracias!!