record successful and failed login attempts