added form and form validation