Fix bug where previous users weren't logged out