Refactoring and tests for the transaction screen
API validation and sanitize of data, not raising 500 errors for the REST