added form validation and linking of templates/url/and current form