adds mkdir function
adds two separated file validators