Added lsvalid(lsname)
Use the new lsvalid function.