improved Host::validate method