Added authentication for admin and account pages.