updated validation of transaction types