How to track user logins
I think you are looking for User Stats module.


  Provides commonly requested user statistics for themers, IP address
  tracking and Views integration. Statistics are:
  
  
  days registered;   
  join date;   
  days since last login;   
  days since last post;   
  post count;   
  login count;   
  user online/offline;  
  IP address;