Server-side validation of submit form.