Ensure users are logged in when authorizing

Fixes #16.