validate size