added call to isValid to validateMax function, since failed uploads report zero size, leading to incorrect success for this validation
work on validator file checks.
Merge branch '4.0'