It is only shocking if you ignore the law. The court cannot overturn a reasonable law, and there is nothing unreasonable about ensuring that a ballot is cast by the actual voter.