fixed commentvotes and also some logic around login