Add error checking on notification email