Validations at the time of update

validation return result is not checked in update function. That's why validation fails.