Conditional logic to show/hide specific fields is not working