fix session issue on first login