update logout API