read validate_function option for customSubmit() from data attribute