sanity check for form submit