fixing closing tags in form