added regex to check if video files are valid