logining for server completed