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.

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

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

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