improved the check for post type easyticket
built the redirect directly into the hook