Why does my form become taller than necessary when submitted?