A bill by a San Francisco state assemblyman has been signed into law to give California public college students the ability to have their chosen names printed on their diploma.

Assembly Bill 245 is meant to avoid having diplomas “deadname” students, particularly those who are transgender or nonbinary, according to Assemblyman David Chiu, D-San Francisco, who authored the bill.

The legislation, which Gov. Gavin Newsom signed into law Wednesday and will take effect at the start of 2022, also standardizes the process for updating records after someone graduates and clarifies what forms of ID are needed to update records, according to Chiu’s office.

“Deadnaming a student on a diploma can put up barriers to future employment and out a person in an unsafe situation,” Chiu said in a statement. “I’m grateful the governor signed this bill to ensure we are protecting and lifting up all of our students in California.”

Chiu will not be in the state Legislature for much longer. San Francisco Mayor London Breed recently announced the appointment of Chiu as city attorney to replace Dennis Herrera, who is leaving that position to be the new general manager of the San Francisco Public Utilities Commission on Nov. 1.