Fixed the issues in the authentication with facebook and twitter.