made logout for ios