How can I detect if a Text is already at a DataStore, and How can I save Texts on a data store?

I’ve been wondering how I can detect a value or a text or a string from a Data Store. And how I can save them if they’re not already on Data Store.

I’m technically trying to make a detection if a name is already taken. Same situation with the password.