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: Rowlett Restaurant Owner Explains No-Mask Policy After Asking Family To Leave

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

READ MORE: Rangers Stop Lynn, Beat AL Central-Leading White Sox 2-1

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

MORE NEWS: Police: Dallas Officer Arrested, Charged With Driving While Intoxicated

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