Name should be "beforeValidate" and "afterValidate" to be consistent with other hook hames. This change doesnt break backward compatibility