validation for the model added