email: Fix incorrect matching of user ids