With the solution I provided, authors would not be able to consider the validation, might have to find something else. In regards to your second question, does the text box turn red at all? Maybe instead of running the javascript line, in the developers console, to manually inject the "patter" html ...