added update  model with validations, and relation