edit data-validation-function