Fixed error on line 38. Was passing user_id instead of the user itself.