Fix wrong field returned in getIdWithEmail()