only output userid and accesskey if user is logged in