Hi,
You can add like this:
Go to->Notifications-> "Add Login attempt notification"

in this notification you have 2 attributes:
-LoginName
-RemoteAddress
Then create a rule in "When a LoginAttemptNotification is received"

The rule could look like this:
CREATE LoginHistory WITH LoginHistory.LoginUsername=LoginAttemptNotification.LoginName, LoginHistory.RemoteAddressIP=LoginAttemptNotification.RemoteAddress, LoginHistory.TimeOfLogin=CURRENT_TIMESTAMP, LoginHistory.TypeOfLogin='Error'
Hope this helps...
cheers,