form submit mostly works, fixed integrityerror