working on transaction validation