Show/hide conditions set on the form are not working properly