Stop demanding love and attention. Stop creating issues on this as it has not worked. On the contrary, it might have worsened your situation as your husband might have perceived it as nagging. Start behaving as if you are ignoring his attitude and let him be curious on your ignorance. Once he opens up on your attitude then discuss your feelings without blaming him because if you blame him then again he will not be interested in listening to you. It is also important that you should improve your relationship with your in-laws; in turn your husband will be more satisfied with you.