update unread count

only for logged in users