Added a txn_type (transaction type) attribute to Transaction, and made it mandatory. Updated model and controller tests.