Multiple functions validation

Added the option to define functions via the initial options
Added multiple function validation via data-custom