AUSTIN, Texas (CBSDFW.COM) — Three transgender women have filed a lawsuit challenging a Texas law that bars federal prison inmates from legally changing their names while in custody and within two years after serving their sentence.

Donna Langan and Teresa De Barbarac are still serving time, but Alexandra Carson has been recently released. They argue that their inability to legally change their names is cruel and unusual punishment.

READ MORE: Dallas ISD Inducts Its 4th Sports Hall of Fame Class

Governor Greg Abbott and Attorney General Ken Paxton are listed as defendants in the lawsuit filed Wednesday. Their offices declined to comment.

READ MORE: Doug Dunbar Speaks One-On-One With Rabbi Charlie Cytron-Walker

Texas is among 10 states that use conviction history to restrict name changes, according to Trans Pride Initiative.

MORE NEWS: Alaska, Texas Governors Sue Over National Guard Vaccine Rule

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