added basic login/out method