Validate function ad

Signed-off-by: Sheik Hassan <solergiga@yahoo.com>