Issues with a form validate hook
This:

function mymodule_form_user_register_form_alter($form, &amp;$form_state) {


needs to be this:

function mymodule_form_user_register_form_alter(&amp;$form, &amp;$form_state) {


Notice $form is by reference in the second snippet.