While you can type it yourself on the device the friend is using there are programs out there that reveal the password once a connection has been established

What is the correctly punctuated version of this sentence?
While you can type it yourself on the device the friend is using, there are programs out there that reveal the password once a connection has been established.