generate user registration form
Merge pull request #3822 from dimagi/userreg

generate user registration form