adding sendgrid support for emails