access denied error on user registration module I created a custom registration form using the code I show below. It works on my test site, but on my live site, it returns an access denied error. I am not sure what the problem is.

function medical_reg_form_user_register_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  $form['#theme'] = 'medical_register'; 
  $form['actions']['submit']['#value'] = t('Next');
}


The setup is the same so I am rather perplexed. The test site is local. Are there some configurations which make a big difference?
You will get a 403 on user/register if you are already logged in.