JS:validate check availablity