Added validator for update.