preliminary form submit handler