Brian T. Valery, the man who passed himself off as an attorney in two states and worked for a major New York law firm, will soon get to appear in a Connecticut courtroom. But this time, his appearance won’t be pro hoc vice in Stamford Superior Court. It will be as a criminal defendant.

Valery, 32, surrendered to authorities in Stamford on Jan. 10 and was arrested on charges of perjury, which carries a maximum sentence of five years in prison, and the unauthorized practice of law, a misdemeanor with a maximum two-month sentence.