the id that you're using in this if statement is a function pointer to the builtin id() function (which always returns true because a function isn't falsy).  Do you mean to use user_id?