added authorization to dashboard

redirect to login page if not logged in