added log in and out