Fixing 404, 500 pages and setting up sendgrid