fix(task groups): correct the validation of new group field

Related to: CAM-3023
fix(task groups): set and use the form validation

Related to: CAM-3023