added commented out code to make logging in easier, if necessary
Clarified login use-case by editing HTTPError message and by expanding comments in code