Changed format of emailUser function