updated validate plugin