fix bug with cname validation