added form validation and handlebars templating