added log in based view