Fixed crash

* Server crashed if user tried to login when connection was refused