fixes CC-605: validate host before adding host