Small fixes in lib/Validations.php

Some small fixes in lib/Validations.php