Improved hash160 validation