Normally if I try registering an account or logging in with correct information it works fine. But if I try to register with a name that has already been taken, it gives me this error: "Simple Authentication: [username: The username is already registered]" which is exactly what I would expect. However the next time I try to register or login with correct or incorrect information it gives me this error: "The auth given is invalid or malformatted". No matter how many times I try to log in or register after this it keeps giving me the same Invalid Auth error until I reinstall the application. What is causing this error and how can I fix it?
And also another issue I'm having is that whenever I call the Client.logout() function the application always crashes no matter what (tried on multiple devices).