added validations.