fix for the salting and hashing