fixes CC-605: validate host before adding host
Merge pull request #1405 from control-center/feature/CC-605

fixes CC-605: validate host before adding host