finish user login/logout