ASP.Net: How to log login-trys correctly?
<p>I have a login in my admin page.</p>

<p>Now I want to log every login-try in my database.
Normaly I have a Log-table with the adminID in a foreign key of the adminuser-table.</p>

<p>Now, of course, when someone try to login with a username that doesn't exist, I haven't a ID and the foraign-key uses a crash in the write-attamp.</p>

<p>Now whats the correct way to log a login-try when the username isn't correct and you haven't the correct id?</p>

<p>1) Add a second log-table for such things
or 2) Remove the foraign Key in the first log-table </p>
