fix. ensure that password passed to generate_password_hash is a string.