fixed incorrect error messages
allow group selection on id or group name