basic login / logout,  fixes #1