Added get username function for when logged in
Removed else statement
Centered 'logout' link on index page