modified sessions controller to work on heroku?