Fixed a bug where old invalid cookies would prevent successful login.