did : added validations