updated the model validation