some js validation added on update