Rudimentary validation with ExtJS.