Improve last check-in email functionality