added validating
added validations