successfully logs in now

server and client run in two seperate threads to facilitate IPC (not
sure if this is a good idea or not)