format type specifiers (go vet)
Add a unit test for the main authentication routine