remove some unnecessary js validation