setup form, add error page, get, post