Code for updating badge details and loyal gifts