Revert "fixed validating"

This reverts commit 4d5b30147fe6be5ad3aeb8e583e22ce72c57a794.
small fix