How can I extend the user registration to do some validation in first place - run custom code - so that if validation can not be detected, registration is canceled? Is it possible with the standard registration formular or should I use the API instead?