fixed the user session issue