added checks for correct entries to the extended search controller