add basic login/logout/registration functionality