Upgrade log-in issue from 4.1 to 4.2

I have a site that was originally built in 5.4.1.1 and am trying to upgrade it to 5.4.2.2 and then eventually 5.5. However whenever I try to upgrade to the first step it does the upgrade. But when I go to login to edit it comes up with this.