login and logout issue fixed