fix form validator