Fix last login time problem