update validate.php with core methods

These basic methods are required for module work appropriately