Fix user login/logout in standalone sandbox