added supporting class and tag in dom()
validate input on index page