Trying to fix login.php error by getting CI instance first