use non-deprecated version of BeforeValidateHelper