Adjusted duo security block to support Remoteuser authentication, in our case the remoteUser name is always set so we do not need to pull from session variables.