Fixed bug loading home page caused when user loads page and is not logged in.