HARRISBURG, Pa. (CBS/AP) — Pennsylvania’s Supreme Court ruled unanimously Friday on a key concern surrounding an avalanche of mail-in ballots in the presidential battleground state, prohibiting counties from rejecting ballots because the voter’s signature on it may not resemble their signature on their registration form. Two Republican justices joined five Democratic justices in the decision.

The verdict was a victory for the state’s top election official, Kathy Boockvar, a Democrat who had asked the court to back her up in a legal dispute with President Donald Trump’s campaign and Republican lawmakers.

“County boards of elections are prohibited from rejecting absentee or mail-in ballots based on signature comparison conducted by county election officials or employees, or as the result of third-party challenges based on signature analysis and comparisons,” the justices wrote.

Trump and former Vice President Joe Biden are locked in a battle to win Pennsylvania’s 20 electoral votes. According to the CBS News Battleground Tracker, Biden leads Trump by seven points in Pennsylvania — 53% to 46%.

In her court filing, Boockvar had said that any such rejections pose “a grave risk of disenfranchisement on an arbitrary and wholly subjective basis,” and without any opportunity for a voter to verify their signature before their ballot is disqualified.

Pennsylvania Attorney General Josh Shapiro called this “another win for voters.”

“Voters who use a mail-in ballot have their identity verified in the initial application, often using a drivers’ license number. Pennsylvania’s voter identification system is safe and secure. We are protecting every eligible vote and ensuring each is counted. Make your plan to vote and we will keep doing our work to make sure your voice is heard,” Shapiro said in a statement.

The decision comes amid a surge in mail-in voting and rising concerns that tens of thousands of mail-in ballots will be discarded in the presidential election over a variety of technicalities.

(© Copyright 2020 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)

MORE FROM CBS PHILLY:

Stimulus Package Update: What Happens To The Economy Without A Second Stimulus?

Carson Wentz Carries Shorthanded Eagles To Comeback Win Over Giants, First Place In NFC East

Pennsylvania Gov. Tom Wolf Announces Plan To Waive Liquor License Fees For Restaurants, Bars