reset pwd add js validation