Added call to logout