added log in and sign up functionality