Fixed loginbutton doubleconnect error

Fixed a bug when doubleclicking the "login" -button. Solved this by checking that no connections are currently being made to the loginserver.