better error msg for "invalid uid" and "invalid gid"