Add validation rules to the models.