Changes to account logic
Added code for sending mails via sendgrid