Validate form

Validates form.