Add support for synchronous validation

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