updated form to fix errors