add normalizeEmail function.