submitting transactions works again.  some very basic input validation done too.
update datamodel: include purchase_type
purchase type should be completely functional.