Why does my form not display properly?