added user login/logout