Fixed login issue and set sendgrid as mailer