Avatar

Level 10

One way is to make the submit button invisible and use another button to do the validation and call the invisible button on successful validation.