twitter authentication with lot of fixes