validate_group_map function

Validate a symbol-to-group mapping