added getExt for file validator