Some code to handle user registration data