Mark input tag invalid when input tag content is blank