Focus/blur handlers.
Now able to guess type if it's missing.