fixing transaction validation logic (create transaction)