Fixed infinite loop on invalid login. Fixed app going to download page.