Added validations to purchase model.