Change content of $page['content'] variable
You can use hook_page_alter to add them into the content array:

function YOUR_MODULE_page_alter(&amp;$page) {

  // Check if this is the correct page.
  if(!isset($page['content']['system_main']['#form_id']) || $page['content']['system_main']['#form_id'] != 'user_login') return;

  // Add links.
  $page['content']['system_main']['register'] = array(
    '#markup' =&gt; '&lt;p&gt;&lt;a href="user/register"&gt;NO ACCOUNT? REGISTER&lt;/a&gt;&lt;/p&gt;',
    '#weight' =&gt; 20
  );
  $page['content']['system_main']['password'] = array(
    '#markup' =&gt; '&lt;p&gt;&lt;a href="user/password"&gt;FORGOT PASSWORD?&lt;/a&gt;&lt;/p&gt;',
    '#weight' =&gt; 21
  );

}


Another option here would be to use hook_form_alter instead. Although hook_form_FORM_ID_alter may well be the most efficient option as it will only run for this specific form removing any overhead from other pages.