validate the function which parses the file form