call BeforeValidate if the model has