Secaro Interview Question

Tech1: How do you validate the data in a form ?