Getting the login flow working alongside device registration to PUSH services