Added attachment size validation