public void run() {
        if (bot.hasPrivateMessage()) {
            message = bot.getPrivateMessage();
        }

        if (message.startsWith("~login")) {
            tokenize(false, 6, message);

            try {
                encryptor = MD5.getInstance();
                users.load(new FileInputStream("config/users.properties"));
                access.load(new FileInputStream("config/access.properties"));

                /*encrypts given password, ex. user=SDFA234FSE434*/
                password = encryptor.hashData(parameters.getBytes());

            } catch (NoSuchAlgorithmException ex) {
                Logger.getLogger(Register.class.getName()).log(Level.SEVERE,
                        null, ex);
                System.err.println("couldn't create md5 object");
            } catch (IOException ex) {
                System.err.println("Error loading configuration file(s): [try !register first]");
                System.exit(0);
            }

            if (users.getProperty(bot.getPrivateSender()).equals(password)) {
                Main.users.put(bot.getPrivateSender(),
                        access.getProperty(bot.getPrivateSender()));

                Main.bot.sendMessage(bot.getPrivateSender(),
                        "Login successful access level: "
                        + Main.users.get(bot.getPrivateSender()));
            } else {
                Main.bot.sendMessage(bot.getPrivateSender(),
                        "Login Failed");
            }
        }
    }