Issue 1370

https://code.google.com/p/otwarchive/issues/detail?id=1370

The username and password are already being validated, so this just adds tests and prettier error messages.