added validation for subdomain names