Input element with validation support, dirty checking