Remove register link and show 404 page if registrations are disabled.