Fix for assignment form group bug

Also added a check for the min/max group members values (ensures that min <= max).