Added input data veryfication