adapts enforce login listener to new server structure