using file validator in controller