added validations to product