validate if given hostgroup is valid