logout now works

Fixes #15