Added host validation.