validate empty fields