Fixed hashPassword