Birth certificate,

Me and my my bf just broke up and he still wants to be apart of the baby's life.. but I'm curious to know am I obligated to put his name on the birth certificate when I have the baby? I feel like if I did then later on in life if we ever got into a argument or anything he would try to take my baby if we don't have a custody agreement through the courts, which I'm trying to avoid