Password methods to hash and validate a password