How to use:
Rename this file to auth.php, implement your validation code inside validate function below.
return true, the request goes through. return false, the request will not go through.