Adding logout method