Implement logout capabilities.