Added support for username/password credentials.