Transitioning my baby

I was cosleeping with my son and last night my husband and I got him to sleep all night in the crib and now he’s taken two naps in the crib! We would feed him a bottle wake him up and tell him he’s going in his crib and then place him in he would cry we would rub his belly and sing to him and he eventually knocked out with some crying. Today for his naps I did the same thing but I rubbed his belly and shhh him and he fell asleep in less than a minute and is sleeping for an hour already! The stress of our shoulders of all the dangers everyone kept telling us is finally over and we can actually cuddle again!