Started adding logic for logout