Now registration page can 1) login the user 2) register the new user and 3) attach client uuid to the user. It even can do all three things at the same time. The only problem is that the code in user_register_handler action became not very nice.