empty fields check working