added listener for login to set last login date