Redirect to login page if not logged in before dashboard.
Closes #341