Added another stdin input sanity check