Form is not expanding based on conditions.