Create validate.php

class file to contain validation logic