Logout and Home Page

Fixed the index page when logged in and added a logout.