Validate groups fields at model level (fixes #192)