revisions to user login/logout