fixed login example
Merge pull request #1 from wadechristie/wade

fixed login example and ApiJsonRequest