Former cop on trial in sex registration case