check validity of gift card code before front-end usage, fixes dioscouri/amritasingh-f3#327