added login functionality for facebook and twitter