added passport-local as a dependency in package.json
added conditional to require local.js only if we are on localhost to avoid an error on heroku
whoops used a nonexistent env variable in the last commit. Fixed this now