added authentication with broker using username and password