add the validation on the model layer