closed #10 added form validation.