added detection of empty fields