added to view so only authenticated user can get to dashboard