fix the user id being passed when logged in