added validations to crop