add twitter authentication middleware