My mistake was that in _check_group_id an invalid check and returning undef. Also, I changed untaint to my $group = Bugzilla::Extension::FieldGroups::Group->new($input->{'group_id'}); to make sure the id passed is valid. Thanks