fix heroku and add logout