fix login session issue