I didn't understand the exact nature of validation you require. Kindly explain a bit more.
Do you want to check/match the data with the server before submitting the form?