build group validation.