fix minor mistake calling isValidPassword boolean like function

example snippet has isValidPassword

Also spell out password as there is no standard abbreviation for this. It is common to see pw, pass, passw, pword, etc.