add options validation

Signed-off-by: Alexandr <yakovlev@primepix.ru>