What do you mean you "Replaced" the hard drive.
If you put a new hard drive in the notebook and cloned or used Time Machine to copy all the data from the original hard drive, operating system, programs and personal data, to the new drive doing that just carried over everythinig that was wrong with the original hard drive and operating system.
You need to erase the new drive, re-install the operating system on it then copy over all your personal data from the old drive to the new. That also means you will need to re-install all the program you use on the new drive. Copying them from the old might also carry over some of the bad stuff that is on the old drive.