common use of the html input validate