Asurion interview question

How would you validate a form submission?