Fix for login issues with google and twitter