added login/logout capabilities