logout and rest api started