Fix bug for HTML5 input validation

Fix a bug where a input type="number" field with non numeric values in it was being reported as empty and overlaying the placeholder on input text.

This should fix it for all input validation that reports the input being empty when invalid input is placed in it.