Added validation for fqdns instead of just hostnames