less validation code in html