Fix variable name

I'm pretty sure this should be passing in a user and not a device, which, unless I'm blind, and I may be, is not being defined anywhere.