js backend validation changes