added validations in attribute section