corrected submit endpoint