check empty fields add doctype