added log in functionality