Adding an alert and enabling email notifications