Preserve state from a previous failed login attempt, if possible.