fix required's field validation