Adding a basic auth mechanism.
Fixing a bug.