Fixed a bug that would cause users to be unauthenticated in the system when refreshing the page in their browsers;