Added validations for contract