Handling Malformed Token Error