public boolean checkAuthorization(String login, String password) {
        String dbPassword = userGateway.getPassword(login);
        if (dbPassword!=null) {
            if (password.equals(dbPassword)) return true;
        }
        return false;
    }