lineInput validation implemented