validation is added for input fields.

Though file validation is pending will be attend it later.