weight validation added