cleaning up validation when the model is changed