fixing loginandvote