validate on all key presses