Created Validator and added file input validation.