fix backend validation before saving