add validation pass

If the string have pass the validation then we will send the email.