It is good to record the user login activity in details including the IP address, user agent, and many more.