Adjusted to support user id as username.