added login/out