Why does my form appear incorrect after using the source code?