updated user factory