changed userinfo to object instead of array