change the method to get last login info