Louise Boyce put her boyfriend's name on her baby's birth certificate. (Wales News Service)

A bitter mum who lied about who the identity of her baby’s father to spite her ex has been jailed for eight months.

Louise Boyce named her new boyfriend Nathan Leggatt as the father of her newborn on the birth certificate, instead of former partner Ashley Sayce.

Boyce, 30, acted “out of spite” by leaving Mr Sayce off the birth certificate after the pair went through a bitter break-up.

Leggatt, 34, was aware of the scam and cried while signing the document, telling staff: “It’s a bit emotional to register the baby’s birth.”

Nathan Leggatt, who was named as the father on the birth certificate, was jailed for six months (Police handout)

Social services investigated the scam and a paternity test later revealed who the real father was.

Boyce and Leggatt, both of Manselton, Swansea, were arrested and admitted wilfully giving false information concerning registration of a birth.

Read more from Yahoo News UK:

EU gives Boris Johnson 12 days to come up with new deal

Justin Trudeau apologises after picture of him in ‘brownface’ emerges

Insect expert rubbishes claims 'spiders are invading the UK'

David Singh, defending Boyce, said she had a “desire” for Leggatt to be the baby’s dad.

Andrew Evans, defending Leggatt, said he “had a genuine desire” to play an active role in the baby’s welfare and wanted to be loyal to Boyce.

Boyce, who is pregnant again, was jailed for eight months and Leggatt jailed for six months at Swansea Crown Court.

---Watch the latest videos from Yahoo UK---