improved Host:validate method