Restart your system into the Recovery HD (Command+R at restart).
When you enter the OS X Utilities menu select Utilities from the menu bar; then Terminal.
Type resetpassword and press enter. Then select your account and change your password. Restart your system, remember that password and you should be good whenever you're prompted for it.