Fix bug where it lied about the login working when it actually failed (issue #87)
Improve active_task error logging to have correct status code.  (issue #87)