public boolean login() {
        try {
            String page = "";
            final URL url = new URL("http://www.fluid.com/repo/sec/login.php?username=" + username + "&password=" + password);
            String cookie = getCookie(new URL(url.toString()));
            URLConnection conn = url.openConnection();
            conn.setRequestProperty("Cookie:", cookie);
            BufferedReader in = new BufferedReader(
                    new InputStreamReader(
                            conn.getInputStream()));
            String inputLine;
            while ((inputLine = in.readLine()) != null)
                page += inputLine;
            in.close();

            if (page != null && !page.equals("0")) {
                logged = true;
                final String[] data = page.split(":");

                if (data.length < 2) {
                    return false;
                }

                userId = Integer.parseInt(data[0]);
                usergroupId = Integer.parseInt(data[1]);
                return true;
            }
            return false;
        } catch (final Exception e) {
            e.printStackTrace();
        }
        return false;
    }