added support for username and password
Merge pull request #74 from dirkm/master

added support for username and password