How to make a field required based on user's response?