added user and password authentication

Ability to authenticate with user and password specified in the
configuration file json