HG-10: form validation

Please review and merge or provide feedback.