submit form. TODO: finish submit form