Added backwards compatibility with old unsalted SHA1 passwords