Added authentication for admin pages.