Added logout feature

Also moved around forms and cleaned up index.php