User object not passed into static method