Sex offender sent to prison for not registering