enhance userBelongsToGroup to also check gid of user