Added interface for formatted error messages. Return validated result
object.