fixed validate configuration function

Change-Id: I158fe304aed37f600bb3ce8bfcc0ed2a2f2604e1