However, we don't usually set the value of a password directly in the code.

Right now Wrong password will never show because the value of password will always be "Swordfish".

Are you using var and the variable's name before the = sign and the value?