finally fixed submit form bug