Modified by Parag for logout feature