Fix form layout and prevent input accumulation