quick fixed potential error in sendEmail button