updated authentication to allow facebook and twitter