register user func works (apparently)