Grab username and password and store it in connection struct.