added checks for file size and blank titles