Make sure the password is actually set before trying to hash it (fixes #67)