Virginia is outlawing the discredited practice of conversion therapy for LGBTQ children.

Conversion therapy is a practice used to try to change sexual orientation or gender identity. Gov. Ralph Northam said Tuesday he had signed into law that bans licensed therapists and counselors from subjecting minors to the practice. The legislation passed the Virginia General Assembly earlier this year.

Northam, a pediatric neurologist, said he was proud to sign the bill into law.

“No one should be made to feel they are not OK the way they are — especially not a child,” Northam said.

The American Psychological Association has said conversion therapy is not based in science and is harmful to mental health. Many people who have been through it say it deepened feelings of depression and increased thoughts of suicide.

The Virginia law will go into effect July 1.