fix ajax valid and submit