fixed a bug that prevents login when a PHP session cookies is present