Added validate directive to controls.