added email check, trying to call nodemailer