Changes to allow auth to work

Updated util.connect_to to use the username and password if setup.