variables and initial validations added.

Variables and initial validations added.