adding logout capabilities