Added the rest of Dom var and validateField(id)