glad to hear that your pup has improved. what you've done on the first day by sleeping with ur pup is not usually recommended. reason being, your pup will learn much slowly that he needs to learn to be alone. also by doing so, your pup might learn that, if it wants u to give attention, all the pup needs to do is cry. :P
be firm with ur pup. firm != cruel. what ur pup is doing now, is learning what are his limits. him stop whinning a while is showing that. he's testing how much is too much and what is allowed in your household. this is the most crucial moment to teach your pup the right things and set the rules! GL!
Thanks for responding. I know what i did on the first night is wrong but I wouldnt want the neighbours to complaint. Now my pup is becoming more devilish. He started to sing and knock doors. Every night, he will knock knock knock and start to sings... Only when my husband yells at him he will stop but only for 5-10 minutes and starts again.

So when I warn him, he actually understands and goes to sleep. I guess it's because I beat him most of the time. I tried many other ways to train him but nothing seems to work except whipping. Now he started playing his drinking water and by the time we reach home after work, he would be thirsty. I haven't had another pup who has this habbit. Any advise??