fix syntax error in form validator