add check for has_primary_email