Form validation

Completed form validation.