Fixed mongoose sessions error. Closes #439.
deploying to heroku