After using unset($form['author']); for comment module drupal returns errors
You should try this if you just want to hide the comment default name field !

function user_add_node_form_comment_form_alter(&amp;$form, &amp;$form_state) {
  $form['author']['name']['#access'] = FALSE;
}