implemented log off