Create validator.php

Used for validating different fileds like email, numbers, phone numbers, limit fields, empty fields etc