forgot to add refund as a transaction command, also handle invalid transaction input