Login/logout-related issues