adding email configurations
optimising email sending
calling email methods
added sendgrid for emails