update validation of size and weight