Fixed a bug that made you not log out properly.