Added validator for duplicate hostname.