@Override
    public Result<Boolean> register(String username, String password) {
        UsersDAO dao = new UsersDAO(getDBConnection());
        try {
            if (!checkLoginPassword(username, password)) return new Result<>(false, ExceptionMessages.EMPTY_DATA);
            if (dao.getUser(username) != null) return new Result<>(false, ExceptionMessages.USER_ALREADY_EXISTS);
            if (!dao.saveUser(new UserDataSet(username, password)))
                return new Result<>(false, ExceptionMessages.SQL_ERROR);
        } catch (SQLException e) {
            e.printStackTrace();
            return new Result<>(false, ExceptionMessages.SQL_ERROR);
        }
        return new Result<>(true, AccountServiceMessages.USER_ADDED);
    }