use custom_validate

Signed-off-by: Bruno Perner <b.perner@gmx.de>