Added validation for update user