Added user registration and restriction for unregistered users to vote