Form fields are being displayed even if the condition to hide them is added.