refactore safeEmail using safeEmailDomain