Add a logout mechanism