Fixed error displayed when refreshing the home page when not logged in.