changed redirect_uri logic so will work locally and on heroku