changed to check if count of primary email addresses is <=1 instead of <=0