Pass data to beforeValidate hook