How to set fields required based on user's answer