handles username/password in the yaml file.