I wouldn't do it like this.
I suggest adding a custom packet to the server that will send an encrypted password (never send raw passwords over the network!). Inside this packet handling on the server read the encrypted password (don't decrypt it!), read a file associated with the player (for example "Players/PlayerNameOrID.login"), and match the encrypted password to the contents of the file. If the file doesn't exist, then it's a new player. If the encrypted password strings don't match, the login fails.
For the encryption itself don't use some static key as anyone that gains access to the server-side file will then be able to decrypt the passwords. You can use the password itself as the key for encryption -- encrypt the password value with the key being based on the password value itself. This way no one will be able to retrieve the original password without actually knowing the password to begin with.
thanks for your support .
i made my own login system and it's working good and of course i did it by encryption.
now my question is how can i check if another user already logged in with same email and password ? i set players email as TNmanager.playername cause it's unique so i need to check if this player name already exist on the server (not in specific channel) .
1- how can i check how much players has playername "1@1.com" for example ?
2- is that possible to change TNmanager.playername for connected player ?
is there any better suggestion for this purpose ?