Added a new statement for invalid group name