added authentication stuff for facebook and twitter in app.js