create a fully controllable error widget that you can use anywhere on your screen with or without a form, control its visibility…