Fixed syntax error with email addresses being a string instead of a list