added logic to make sure user has an email before emailing