gui: Defer allocation of validator

Signed-off-by: Michael Buesch <m@bues.ch>