fixed wrong usage of $.inArray in validators

fixes #448