adds logout method