refacter userid to email