How to make a field required based on a previous selection?