added logout api