Make dashboard redirect when login required

Fixes #863