Added code to fix devise issue on heroku