Input variables validation