Added some debugging and one minor security test to deploy.php