remove some old debug prints and handle invalid user_id