Changed authenticator to work with ENV variables (for heroku)