Fixed Login Logout issue