Added cross-browser validation support.
Fixed form validation