testing email validation and sending