I moved that code to the beginning as mentioned.
Now it seems as though login isn't going and probably the other stuff as well.
This site was put together pretty simply with div and content. I don't know why the software isn't putting the code in the right spots. Attached are the other files.