fix bug about validate and add w5cSubmit