Implemented validations for associations when updating

Implemented validations for associations when updating