added error message for mail