Validate input before an update.