The database field Success in the Session History table automatically records if a user was successful logging in.