added authentication for main pages
started work on dashboard page