added generate promocode validations;