Form not displaying properly after initial submission