Adding controller support for validation failures.