check for empty fields