add user_id for cookie when user logged in successfully