loginview shows "welcome system-name/administrator" and logout for the first time page load
<p>I modified my code to use LoginView and before I had a button in one of my aspx page to redirect to login.aspx and another button for logout and it was all working fine and now I have a LoginView in my master page instead of the button and I have added the code below.But when I load the page it shows my status as loggedin before I even login to the page and I have another page login.aspx to actually enter the credentials and username ,password are stored in sql server.
Here is the code for loginView</p>

<pre><code>            &lt;asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false"&gt;
                &lt;AnonymousTemplate&gt;
                    [ &lt;a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server"&gt;Log In&lt;/a&gt; ]
                &lt;/AnonymousTemplate&gt;
                &lt;LoggedInTemplate&gt;
                    Welcome &lt;span class="bold"&gt;&lt;asp:LoginName ID="HeadLoginName" runat="server" /&gt;&lt;/span&gt;!
                    [ &lt;asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/home.aspx"/&gt; ]
                &lt;/LoggedInTemplate&gt;
            &lt;/asp:LoginView&gt;
</code></pre>

<p>Is it behaving like this because I havent used roles and membership ?Please help me.I have no luck searching for the problem in internet</p>
