Support decoding scalar addreses

Add function to validate input data