private boolean isRightPass(String candidPass, DataOutputStream outToClient) {
        String password = client.getPassword();
        try {
            logfile.update("Client: " + candidPass);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        String[] request = candidPass.trim().split(" ");

        //if one word: expected NOOP or QUIT or something else
        if (request.length == 1) {
            if (request[0].startsWith("NOOP")) {
                send(outToClient, " +OK");
            } else if (request[0].startsWith("QUIT")) {
                this.close();
            } else {
                send(outToClient, "-ERR Unknown command - 1");
            }
        }

        //if two word: expected USER + username or something else
        if (request.length == 2) {
            if (!request[0].startsWith("PASS")) {
                send(outToClient, "-ERR Unknown command - 2");
            } else if (request[1].startsWith(password)) {
                send(outToClient, "+OK maildrop locked and ready");
                return true;
            } else {
                send(outToClient, "-ERR unknow user");
            }
        }

        //if more as two word: not accept
        if (request.length > 2) send(outToClient, "-ERR Unknown comman - 3");
        return false;
    }