Add logout mechanism