Application form validation.

Fixes #73
Fixes #61