Add form validation support