fixed wrong hash salting implementation