Validate number of instances in the UI before saving