update validator when click submit button