Fix bug where signing out does not redirect