@Override
    protected String doInBackground () {
        Benchmark.start("LoginWorker");
        try {
            if (LaunchFrame.canUseAuthlib) {
                try {
                    LoginResponse resp = AuthlibHelper.authenticateWithAuthlib(username, password, mojangData, selectedProfile);
                    this.resp = resp;
                    Benchmark.logBenchAs("LoginWorker", "Login Worker Run");
                    if (resp != null && resp.getUsername() != null && !resp.getUsername().isEmpty()) {
                        if (resp.getSessionID() != null) {
                            return "good";
                        } else {
                            return "offline";
                        }
                    }
                    if (resp == null)
                        return "nullResponse";
                    if (resp.getUsername() == null)
                        return "NullUsername";
                    return "bad";
                } catch (Exception e) {
                    Logger.logError("Error using authlib", e);
                }
            } else {
                ErrorUtils.tossError("Authlib Unavaible");
            }
        } catch (Exception e) {
            ErrorUtils.tossError("Exception occurred, minecraft servers might be down. Check @ help.mojang.com");
        }
        return "";

    }