Added login/out capabilities