Fixed an issue where the browser back button would log the user out.