fix syntax error in validation