changed module export of users plugin to return a function that chucks if the user is registered and logged in using the module's identified array.