onValidation callback was added