K.L.
As a stay at home mother, I experience much the same thing with my 2 year old - I am unquestionably the "bad guy": I am the disciplinarian, I am the one that creates and enforces the rules, and even though I know that my daughter loves me, once daddy comes home, I'm chopped liver. It does hurt a mother's feelings after you give your heart, soul, life and undivided attention to your child only to have him/her seem to scorn your attention once your partner gets home. My husband is the playmate, and while he supports me and backs me in my discipline of our daughter, he is unquestionably the "good guy".
This, Im afraid, is just how it is for most, if not all, stay at home mothers who's partners work out of the home. We spend ALL day with our children: and you know how, sometimes, we get tired and frustrated of being in the company of sometimes poorly behaved children, and just need a moment to ourselves? Our children become just as frustrated when having to spend all day, every day with the same person (usually mommy). They need their time away and need to feel as if they have some independence over themselves and their own life too. Your child will never truly appreciate everything you do for them and what you sacrifice for them until THEY have their own children: but that is part of being a mother - giving to your child unconditionally, even though they will never appreciate or understand it and you.
Its alright and appropriate for your son to seem to enjoy his time with his father more than he does with you: Daddy is a different face and different in the way in which he relates to his son. You have to allow your son to have that special relationship with his father, just as he has a special and unique relationship with you that he will not experience with his father, and not become bitter or jealous. There is no way to stop that growing independence, and you should in no way attempt to hold him back - your son is no longer a baby, and in the process of discovering the uniqueness of himself and his own thoughts in a much deeper way than he did when he was 2 or 3- and you cant force him into the kisses and coddles. Just remind yourself that this too will pass: and know that he DOES love you, but the way in which he chooses to display those feelings are changing as he grows older. Accept it instead of being saddened by it: your son is coming into his own, and you can't stop that train. Don't make him feel guilty for changing, as he has no control over that.
These are some of the sacrifices we make as mothers: it is often a thankless job, but remind yourself that, regardless of how your child relates differently towards you or your husband, you are raising a future man, and it is important that he experience special relationships with both mom AND dad in different ways to be a well-rounded human being. Being a mother is the HARDEST job in the world, and it is easy to feel unappreciated - appreciate YOURSELF, and see what an amazing thing you are doing by raising a child.