Andrew Lapping, 35, of Bridgend, had previously been convicted of raping a child under 13 when he committed the offences.