public boolean updateUserPassword(String login, String oldPassword, String newPassword) {
        if(checkAuthorization(login, oldPassword)) {
            if (userGateway.updatePassword(login,newPassword)) {
                return true;
            }
        }
        return false;
    }