Relocated security check for init.php