Fix for assignment form group bug. Also added a check for the min/max group members values.
Merge pull request #1572 from arkon/form-groups

Fixes #1571