implemented logout

you can't trigger it though