added validateWifKey