Yeah i've lost the will to live with ssl stuff so back to basic sockets.
Also fixed the login system and the program now works, of course with no
way to create logins all logins are rejected :(