Added showMessages option which when set to false never shows validation messages