Slight logic change for Anonymous users

anonymous users don't have any of the User attributes so have to be
handled independently of other user logic.