Why is my form displaying incorrectly?