Move imports to the top of the forms file.
Raise validation error if transaction category and is_revenue don't match.