Don't assign account unless signed in

Fixes #852.