Fixed some errors

Had a problem with the avatar defaulting to steve when page reloaded
even when the user was logged in. That has been fixed as well as I made
the whole page reload when they click the log out button. It saves time
and stress!