Fixing situation where two error messages take the user back to the welcome page.