Widower sentenced to 18 months in prison for sex with minor