Added function to get last login date for the user