Validators: Code refactoring

* Uses less variables.
* Reduces redundancies.
* Cleanup.