Fixed rare bug regarding last login time