check for empty text