Adding the user registration code