just added the login procedure for the client side. Ill try doing the server next.
Basically this is how it goes:
1. User chooses either login or new account.
2 they add credentials.
3 The server recieves username, password, and a value to tell if it's a new account or login. Based on that value, the server will eventually write back a true value once everything is completed. If the login failed it will return false value and wait for the server to send credentials again
4. The server recieves the value and breaks out of login loop if true, otherwise it starts over.