fixed deployment error line 507, in validate_host