fixed transaction validation