fix form error, templating main-page