Splitting users in dropdown into optgroups