Fix #1187, Fix #1188

- Fix #1188 Swap focusout event for keyup event
- Fix #1187 Add client side check on field name validity