Hi,
if you are trying to make a login page, try adding the below into your web.config
<authentication mode="Forms">
<forms loginUrl="login.aspx" protection="All" timeout="30" name="AppNameCookie" slidingExpiration="true" cookieless="UseCookies" enableCrossAppRedirects="false"/>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization
and works fine in Chrome for me
the rest of the coding is similar as you have mentioned above.