Javascript Validate Text Input Onchange Javascript Event