Update validate.php

implemented postProcess method. Still subject to changes and updates
Update validate.php

implemented postProcess method. Subject to changes