Fix onsubmit method for inputTokens.