allowing credentials to be passed into a connection