finish building subdomain authentication