Fixed and added more features with login logout

Used login() and logout() to create sessions
Index page now changes depending on whether or not you are logged in or out
User page correctly shows your name
Added log out button on user page