Additional error handling

* Correct message on login failure.
* Adds more headers in request for statistical usage.
* Fix balance.