Updated validate.php

Validation logic test three scenarios; successful, failed and canceled payment by customer