Added proper ticket validation