Improve validation to support info, warnings and errors