add public method for triggering validation without submitting form