Only show the login/register links on index page.

[#47383131]