add js to validate