add somewhat more robust handling of input email addresses (not just bare)