Tax return rejection

When I completed my 2018 tax return (both federal and state) it was rejected because I didn't know what an AGI number was at the conclusion. If that information is already on the W-2 form,why confuse me at the end of a long process.