User registration: a bit of wire-up

+ a tiny bit of refactoring.