index.php is trying to write login to db not txt