More work on validation.

Decided to make transformation and validation interchangeable.