validator plug in custom javascript validation function example