validate search input on javascript level

allow valid bitcoin address or valid txid only