How to add condition to show hide form fields?