Refs #498, checks if the user is logged in before setting the default_org_id in JS.