Modified to account for both username/password and apikey login and validation.

Users should be able to login with a username/password combination or an API key. The documentation (README.md) also reflect the changes.