added auth check for form, admin, and newsfeed pages.