Add some stuff to make it nice

 - Show the username when logged in
 - Show a "log out" link when logged in
 - Redirect to the index when logging out

and fix some typo on the way.