Kids go through phases; sometimes they are attached to one parent and shun the other, but be assured he still needs you!! My kids are teenagers and we have been through it all! There were times when my husband felt discouraged because they wanted me...then times when we were both discouraged because they were attached to their nanny! There were also many times when i felt left out because they completely bonded to their dad. My son once had to write his life story for a school assignment; the whole thing was about how great his dad is!! The thing is, WE have to be the adult; allow them to go through these normal phases and try to keep your spirits up. Continue to be there and love your child, spend as much time with him as you can, especially one on one time without your husband there, also spend time as a family. Time is the key! If you feel bad, talk to your husband privately or share your feelings with a friend or relative. Try not to let the child see that your feelings are hurt. For one, it makes them feel guilty about something that is a normal part of growing up....but most importantly, it gives a child a sense of control over a parent, which is not something you want to encourage. Kids need to know that someone is in charge....it gives them a sense of security. If you have already let him see that your feelings were hurt, don't worry...all damage can be undone; just try to send a consistent message from now on that you will always love him even when he isn't acting that way towards you, and that you are in control of your emotions.
Also, if possible, please take a look at your work situation... I know this is a delicate issue, but speaking from my own experience, I worked more than full time when my kids were very small. We had a full time nanny because my husband and I were working such crazy hours. Then i had a neck injury and went on disability, so I was home with my kids. I was really amazed at the difference it made in our relationship. I always said the nanny could do it better than I could anyway (taking care of kids, house, etc.), which may be true! But although my kids have messy rooms, my husband and I were able to impart our values to our children in a way we just couldn't when I was working. It is hard to explain, but quality time is not a substitute for quantity time. It is the little things....driving them to school and activities, etc...that provide these little teachable moments; opportunities that only present themselves when you spend a lot of time together. If you can look into some other options, even if it involves your husband getting a better paying job so you can stay home, or moving to a less expensive area, or doing without some things...it is a major lifestyle change that nobody likes to think about, but the results may be well worth the sacrifice. I had a great career as a doctor, but when i became a mom, my kids became the priority. And you know what? The 18 years until they grow up and are on their own actually goes by pretty fast. And then I will have plenty of time for my own pursuits, whatever those may be. I am just very grateful for the time I have had with my children!