Added logout api endpoint