Setup of working user registration.  Still a bit crude and needs proper authentication and checks against user account abuse.