Fixed issues with the facebook and twitter authentication.