This new Unifi device supports captive portal authentication flows, so you don't need to do that whole shuffle.
Source https://m.youtube.com/watch?v=Ruv550at3k8