add simple validations for invalid purchase count