resolved login and logout session issue