Fixed handling of stop/restart/back after failed logins. If debug mode
had not been implemented, the app would perpetually try to move between
activities upon screen dim when waiting during countdown.