add routing, thanks page and server-side validation