logout mechanism in interface