**Steps to reproduce:** 1. Add a new device 2. Enter a made up code, e.g. `bad code` 3. The UI hangs 