how can I hide user name from login page with If-Statement. Im using this code to show the user name in the main page after login in, and it's working
{%if request.user.first_name%}{{request.user.first_name}}{%else%}{{user}}{%endif%}
but the problem is that it's shown in the login page too as "AnonymousUser". how can I hide this
Any Idea?