handling error on promocode

category choosing now uses resolve