fixing upload file controller and validator