adding form submission verification and fixing database tools