Added authication function to twitter.