Introduce configuration validator.

Signed-off-by: Toha <tohenk@yahoo.com>