Handling of invalid token validation