The Michigan Court of Appeals says a man who had a teenage romance with a girl he later married doesn't deserve to be on the state's sex offender list.

Robert Dipiazza had a consensual relationship when he was 18 with a nearly 15-year-old in 2004. A teacher contacted authorities because the age of consent is 16 in Michigan.

A third-degree attempted criminal sexual conduct charge was eventually erased from his record, but he still had to register as a sex offender. He says he had trouble finding jobs and became depressed.

The state appeals court on ordered a Muskegon County judge to strike his name from the registry, calling it cruel punishment. Dipiazza and his girlfriend were married in April and had a baby during the summer.