How to make a form field requred based on the selection of another field?