add validations for update action