Form validation. Closes #79