a logged-in user will be sent to root if they open login view