Fixed some bugs with being logged in simultaneously as an anonymous viewer
and as a non-anonymous viewer.