implementing subdomains and inviting users from tutorial