added call to isValid to validateMax function, since failed uploads report zero size, leading to incorrect success for this validation