brings back beforeValidation hook