fix submit hook on validator