Add support for old password hashing