Validation for noHostnames