set context to model being validated