Updated ssl check on index.php