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: Alleged Bank Robber Arrested, Charged Following Fingerprint Analysis

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

READ MORE: Texas Saw 16% Spike In Deaths From Drivers, Passengers Not Wearing Seat Belts In 2020

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

MORE NEWS: 'It's Somebody's Pet', Bengal Tiger Seen Wandering Around Houston Neighborhood

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