added log out feature