A little addition from my own experience with our cat and dog.  When I approve of them biting me, I use a thick leather glove on my hand.  When the glove is off, they have learned not to bite

  I have done this when both of them were very young, to get them used to the idea.  Best wishes to you!