Try resetting the SMCand see if that helps.
You say it doesn't accept the password. Try typing in the password slower and see that it sees every press on they keyboard. If the Macbook seems to be running slow, combined with a trackpad acting up, it may be the trackpad going bad and needs replacing.