added error handler middleware
added sendgrid email alert
removed unused views