login function using twitter api version 1.1