add implementation for logoutUser function

Change-Id: I5058ce7947293ef752cb216e975b2d9bfeb82e46