You can override WizardPage.getNextPage()
and return null to prevent the next button from operating.
It is more usual to validate the user input as it happens and call WizardPage.setPageComplete(false)
to disable the next button completely until the page is valid.
Call WizardPage.setErrorMessage(msg)
or WizardPage.setMessage(msg, type)
to display messages.