You most likely need to add a plugin to do this. You need some of the registration variables defined - you should take a look at the registration page to see what is needed. Aren't there already modifications available that do this? Go check out one of them and see what they added in their plugins.