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