fixes #43 Exposes login and logout to the world