added promo code to receipt, split code checking into seperate file and made email of type email