add validations to Purchase model