結果 : how to validate text input in javascript