updated changePwd with hasingfunction