Update data according to validation result