Input validation with jQueryUI