Adds file type validation
More figaro