updated the promo code functionality and fixed the URL security issues

Signed-off-by: Anurag <anurag.pattnaik@andolasoft.com>