added user login/out