Prevent access to dashboard when no user logged in