Sometimes user input is not strictly invalid but can be considered problematic.
For example:
Name<
Here is a way to do a warning without writing any server-side code. Add the class "ignore-validation" to the desired invalid elements on form submit, and in your custom validation method return "true" if the element has this class (if it has the class it means the form was submitted once). You'll also need to remove the "ignore-validation" class from #IdOfInput on blur or change, depending upon the kind of control it is, that bit of code is not represented here: