How to set value in form validate for later validation functions Problem

I'm adding the user register form onto the node create form with hook_form_alter.

The problem is the first step of account validation always fails because Drupal doesn't save Username to form_state['values']['name']. (I think because I'm combining two entity forms (user and node) and perhaps because it's not needed for the default entity node form?)

Either way I have 4 validation functions that run in $form['validate'];

0 (String, 18 characters ) node_form_validate | (Callback) node_form_validate();
1 (String, 39 characters ) commercecurrency_node_form_validate | (Callback) commercecurrency_job_advert_form_validate();
2 (String, 22 characters ) _editnode_validate | (Callback) editnode_validate();
3 (String, 26 characters ) user_account_form_validate | (Callback) user_account_form_validate();


I'm trying to set the value in _editnode_validate so $form_state['values']['name'] is set when user_account_form_validate runs.

However the following code although it changes the value in _editnode_validate, doesn't save the value for the other validation functions. How can I get it to store the new value?

function _editnode_validate ($form, $form_state)

   $test_value = $form_state['input']['name'];
   $form_state['values']['name'] = $test_value;


(Both _editnode_validate and user_account_form_validate are added in hook_form_alter, and the code for _editnode_validate is in the hook_form_alter module.)
Is the problem just that your not passing $form_state by reference in your _editnode_validate validation function?

// note the &amp; before $form_state to pass by reference
function _editnode_validate ($form, &amp;$form_state) 

   $test_value = $form_state['input']['name'];
   $form_state['values']['name'] = $test_value;