Add token validation logic