reorganization

Cleaned up the code a bit by seperating the css from the php and html.
Now the current username is printed at the header of every page. Also
changed how empty fields are checked so that another page doesn't have
to open.