How to know when a widget component is valid

You need to call the SetName function that you call inside RepNotify on BeginPlay.