why was harry potter name in the goblet of fire
Harry tells Dumbledore that Voldemort returned and killed Cedric. Moody takes Harry back to his office to interrogate him about Voldemort, but inadvertently blows his cover by asking Harry whether there were "others in the graveyard", despite Harry not mentioning a graveyard. Moody reveals that he submitted Harry's name to the Goblet of Fire and manipulated Harry throughout the tournament to ensure he would win. Moody attempts to attack Harry, but Dumbledore, Snape, and Minerva McGonagall intervene and subdue him. The teachers force Moody to drink Veritaserum, a truth-telling potion, and he reveals that the real Moody is imprisoned in a magical trunk. The impostor's Polyjuice Potion wears off, revealing him as Crouch Jr., who is then returned to Azkaban.