added error message for invalid group name