added input validation around MoveFile