Form does not display correctly