public AccountServiceError getUser(String login, String password) {
        if (isConnectionClosed())
            openConnection();

        if (isConnectionClosed())
            return new AccountServiceError(AccountServiceError.Type.DB_noConnection);

        UserDataSetDAO dao = new UserDataSetDAO(dbconn);
        UserDataSet user;
        try {
            user = dao.find("login", login);
        } catch (SQLException e) {
            return new AccountServiceError(AccountServiceError.Type.Signin_badLoginOrPassword);
        }

        if (user == null || !password.equals(user.getPassword()))
            return new AccountServiceError(AccountServiceError.Type.Signin_badLoginOrPassword);
        return new AccountServiceError();
    }