Fixed logout issue with multiple users