added log in function
added log in and log out path