Thanks, but I think you meant line 16:

//add_action('register_form', 'CPA_add_extra_reg_filed');

That seemed to do the trick. Thanks.