replaced mail.php with php default email-validation function