Updated example login call which wasn't calling the Api login function correctly
Merge pull request #2 from astalker/master

Updated example login call which wasn't calling the Api login function