check the input in the mail-script