added group validation