catch user entering nothing (filename is nil)