Validator file, proper order of conditions