Check for valid hostname and allow groups in section names